{assign var=formId value='add'}
<div id="content">
    <div class="highlight">
        {if isset($tabadmindefault)}{$tabadmindefault}{/if}
        {if isset($searchtype)}{$searchtype}{/if}
        {if $infoText}
            <div class="{$infoClass}">
                <h4>Result:</h4>
                <p>{$infoText}</p>
            </div>
        {/if}
        {include file="admin/toolbar.temp.html" title=toolbar}  
        <div class="formType">
            <form action="{$base_url}" method="post" id="{$formId}" name="{$formId}" enctype="multipart/form-data">
                <fieldset>
                <div class="left">
                    <div class="titles">{l s='infoneed'}</div>                 
                    <div style="clear:both;">
                    <ul class="tabs">
                        {if $objectLanguages}
                            {foreach $objectLanguages as $objectlang} 
                            	<li class="tab {if $objectlang@first}selected{/if}">{$objectlang->getField('name')}</li>
                            {/foreach}                                   
                        {/if}                        
                    </ul>
                    {if $objectLanguages}
                        {foreach $objectLanguages as $objectlang} 
                            
                            <div class="tabcontent {if $objectlang@first}selected{/if}">
                                <p>
                                    <label for="{$objectlang->getField('code')}_name">{l s='name'} *</label>
                                    <span>{l s='name_help'}</span>
                                    <input type="text" name="{$objectlang->getField('code')}_name" value="{$objectInfo->getFieldLangAdmin($objectlang->getField('code'),'name')}" />
                                </p>    
                                <br class="clear"/>
                            </div>

                        {/foreach}                                   
                    {/if} 
                
                    </div>        
                          
                </div>
                <div class="right">
                    <div class="titles">{l s='infononeed'}</div>
                    <div id="accordion">
                        <div class="title">{l s='properties'}</div>
                        <div class="content">
                            <p>
                                <label for="code">{l s='code'} *</label>
                                <span>{l s='code_help'}</span>
                                <input type="text" name="code" value="{$code}" />
                            </p>        
                            <p>
                                <label for="status">{l s='status'} *</label>
                                <span>{l s='status_help'}</span>
                                <select name="status">
                                    {$listStatus}
                                </select>
                            </p>
                            <p>
                                <label for="position">{l s='position'} *</label>
                                <span>{l s='position_help'}</span>
                                <input type="text" name="position" value="{$position}" />
                            </p>  
                        </div>                      
                    </div>
      
                </div>
                <div class="over">
                    <p class="btnType">
                        <input type="hidden" id="op"  name="op" value="{$op}" />
                        <input type="hidden" id="act" name="act" value="{$act}" />
                        <input type="hidden" id="oId" name="oId" value="{$oId}" />
                        <input type="hidden" id="plus" name="plus" value="saveItem"/>
                    </p>
                </div> 
                <br style="clear:both"/>   
                </fieldset>
            </form>
        </div>
    </div>
</div>